package com.eas.biz.dao.user.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.eas.biz.dao.user.dataobject.AreaDO;
import com.eas.biz.dao.user.interfaces.AreaDao;
import com.eas.biz.framework.BaseQuery;
import com.eas.biz.framework.dao.GenericDaoImpl;

@Repository("areaDao")
public class AreaDaoImpl extends GenericDaoImpl<AreaDO> implements AreaDao {

    public AreaDO selectById(long id) {
        return selectById("Area.selectById", id);
    }

    public long insert(AreaDO areaDo) {
        return insert("Area.add", areaDo);
    }

    public int deleteById(long id) {
        return deleteById("Area.deleteById", id);
    }

    public int update(AreaDO areaDo) {
        return update("Area.update", areaDo);
    }

    public List<AreaDO> selectByQuery(BaseQuery query) {
        return selectByQuery("Area.selectByQuery", query);
    }

    public int countByQuery(BaseQuery query) {
        return countByQuery("Area.countByQuery", query);
    }

}
